package simple16;

import simple16.command.Command;
import simple16.command.DisCoutCommand;
import simple16.command.HotCommand;
import simple16.command.NewerCommand;

/**
 * 命令模式
 */
public class Simple {
    public static void main(String[] args) {
        Command command1, command2, command3;
        command1 = new HotCommand();
        command2 = new NewerCommand();
        command3 = new DisCoutCommand();
        ListView listView = new ListView();
        listView.setCommand(command1);
        listView.getList();
    }
}
